Namespace - LJCNetCommon
Parameters
createText - The previously created text.
textState - The TextState object.
Syntax
C# |
public Void AddChildIndent(String createText, TextState textState)
|
Adds the new (child) indents.
Remarks
Adds an indent for following child elements.
The indent will only be added if the createText length > 0 and the
textState.ChildIndentCount > 0.
Example
C# |
var textState = new TextState();
var result = CustomBegin("body", textState);
private static string CustomBegin(string name, TextState textState
, Attributes attribs = null, bool addIndent = true
, bool childIndent = true)
{
var hb = new HTMLBuilder(textState);
var createText = hb.GetBegin(name, textState, attribs, addIndent
, childIndent);
hb.Text(createText, NoIndent);
hb.AddChildIndent(createText, textState);
var result = hb.ToString();
return result;
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.